from pathlib import Path
from dynaconf import Dynaconf

settings_files = [
    f"{Path(__file__).parent}/settings.toml",
    f"{Path(__file__).parent}/.secrets.toml",
]  # 指定绝对路径加载默认配置

settings = Dynaconf(
    environments=True,
    envvar_prefix="gypb",
    env_switcher="gypb_env",
    env="development",
    settings_files=settings_files,
    merge_enabled=True
)

# `envvar_prefix` = export envvars with `export DYNACONF_FOO=bar`.
# `settings_files` = Load these files in the order.
